package com.koron.css2.newProjectCenter.callback;

import com.koron.css2.serviceManage.bean.UserInfoBean;
import com.koron.util.Constant;
import org.koron.ebs.mybatis.SessionFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.swan.bean.MessageBean;

/**
 * 用户工程延期审批回调
 * 1、
 * @author 59532
 *
 */
public class PjProcessDelayCallback extends AbstractProcessInterface {
	
	private static Logger log = LoggerFactory.getLogger(PjProcessDelayCallback.class);

	public MessageBean<?> exec(SessionFactory factory, UserInfoBean userInfo, String billId, String fromNodeCode, String toNodeCode) {
		/*if("delayApproval".equals(fromNodeCode) && "end".equalsIgnoreCase(toNodeCode)) {
			PjProcessNodeTimePostponeMapper processNodeTimePostponeMapper = factory.getMapper(PjProcessNodeTimePostponeMapper.class);
			PjInfoMapper pjInfoMapper = factory.getMapper(PjInfoMapper.class);
			ProcessNodeTimeMapper processNodeTimeMapper = factory.getMapper(ProcessNodeTimeMapper.class);
			PjProcessNodeTimePostponeBean processNodeTimePostpone = processNodeTimePostponeMapper.selectById(billId);
			PjInfoBean pjInfo = pjInfoMapper.selectById(processNodeTimePostpone.getPjId());
			processNodeTimeMapper.selectByProcessInstanceIdAndNodeCode(pjInfo.getProcessInstanceId(), processNodeTimePostpone.getNodeCode());
			// processNodeTimeMapper.update(processNodeTime)
		}*/
		return MessageBean.create(Constant.MESSAGE_INT_SUCCESS, "执行成功", Void.class);
	}
}
